Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add output_format do video datasets and readers #6061

Merged
merged 2 commits into from
May 23, 2022

Conversation

NicolasHug
Copy link
Member

Follow-up to #5952 (review)

This PR adds a new output_format to all video datasets, as well as VideoClips() and read_video(). The default is BC, so it corresponds to:

  • TCHW for Kinetics
  • THWC for everything else.

This is far from ideal, but this is the only way for users to have a consistent experience in torchvision. Right now, Kinetics is an outlier. For ref, the decision to have Kinetics follow the TCHW format comes from #3680 (comment).

Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @NicolasHug!

@datumbox datumbox merged commit 4c66813 into pytorch:main May 23, 2022
facebook-github-bot pushed a commit that referenced this pull request Jun 1, 2022
Summary: Co-authored-by: Vasilis Vryniotis <[email protected]>

Reviewed By: NicolasHug

Differential Revision: D36760918

fbshipit-source-id: bfaa11b43cb0ebffb41b0e24fef1b6b65b6deef4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants